(function (window, undefined) {
  const map = document.getElementById("map");
  const button = document.getElementById("reload");

  let game = new Game(map);
  game.start();
  //游戏结束后重新开始
  button.onclick = function () {
    location.reload();
  };
})(window, undefined);
